home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / BaseCover.script < prev    next >
Text File  |  2001-10-08  |  2KB  |  72 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CBaseCoverMesh_1
  11. {
  12.   string MeshFile = "Models/B_Base_3.mesh";
  13.   string SkinFile = "Models/B_Base_3.skin";
  14. }
  15.  
  16. class CBaseCoverMesh_2
  17. {
  18.   string MeshFile = "Models/B_Base_4.mesh";
  19.   string SkinFile = "Models/B_Base_4.skin";
  20. }
  21.  
  22. class CBaseCoverStateControl extends CUnitLifeControl
  23. {
  24.   void CBaseCoverStateControl()
  25.   {
  26.     CUnitLifeControl(500.0);
  27.     m_DestroyPause = 7.5;
  28.     m_ExplosionId  = "EXPLID_ItemExplosion";
  29.   }
  30. }
  31.  
  32. // Building without ground control (for use in villages)
  33. class CBaseBaseCover_1 extends CBuilding, CUnitWithStateControl
  34. {
  35.   void CBaseBaseCover_1()
  36.   {
  37.     InitializeModelAsStatic("CBaseCoverMesh_1");
  38.     CUnitWithStateControl("CBaseCoverStateControl");
  39.     Core_RemoveClassificator(CLASSIFICATOR_OBSTACLE);
  40.   }
  41. }
  42.  
  43. class CBaseBaseCover_2 extends CBuilding, CUnitWithStateControl
  44. {
  45.   void CBaseBaseCover_2()
  46.   {
  47.     InitializeModelAsStatic("CBaseCoverMesh_2");
  48.     CUnitWithStateControl("CBaseCoverStateControl");
  49.     Core_RemoveClassificator(CLASSIFICATOR_OBSTACLE);
  50.   }
  51. }
  52.  
  53. // Single game object
  54. class CMountedBaseCover_1 extends CBaseBaseCover_1
  55. {
  56.   void CMountedBaseCover_1()
  57.   {
  58.     InitializeGroundControl();
  59.   }
  60. }
  61.  
  62. class CMountedBaseCover_2 extends CBaseBaseCover_2
  63. {
  64.   void CMountedBaseCover_2()
  65.   {
  66.     InitializeGroundControl();
  67.   }
  68. }
  69.  
  70.  
  71.  
  72.